import request from '@/utils/request'

export default {
  getList(currentPage, pageSize, queryInspectorDTO) {
    return request({
      // 请求的地址
      url: `/inspector/list/search/${currentPage}/${pageSize}`,
      // 请求的方式
      method: 'post',
      // 请求的数据 post请求发送数据时使用data  get请求发送数据时使用 params
      data: queryInspectorDTO
    })
  },
  disabled(id, status) {
    return request({
      url: `/inspector/disabledInspector/${id}/${status}`,
      method: 'get'
    })
  },
  deleteInspector(id) {
    return request({
      url: `/inspector/delete/${id}`,
      method: 'get'
    })
  },
  inspectordetails(id) {
    return request({
      url: `/inspector/queryInspectorById/${id}`,
      method: 'get'
    })
  },
  deleteinspector(id) {
    return request({
      url: `/inspector/delete/${id}`,
      method: 'get'
    })
  },
  QueryOrderByInspectorId(id) {
    return request({
      url: `/inspector/QueryOrderByInspectorId/${id}`,
      method: 'get'
    })
  },
  QueryRoad(id) {
    return request({
      url: `/inspector/QueryRoad/${id}`,
      method: 'get'
    })
  },
  QueryInspectorById(id) {
    return request({
      url: `/inspector/QueryInspectorById/${id}`,
      method: 'get'
    })
  },
  QueryInspectorDetailedStatisticsById(id) {
    return request({
      url: `/inspector/QueryInspectorDetailedStatisticsById/${id}`,
      method: 'get'
    })
  }
}
